<?php

namespace app\model;

use app\BaseModel;

/**
 * 推送消息
 */
class PushMessageModel extends BaseModel
{
    protected $name = 'push_message';

    /**
     * 新增数据验证
     * @return array
     */
    public function addValidate()
    {
        return [
            'uid|操作人ID'  =>  'require',
            'department_ids|接收对象' =>  'require',
            'channel|发送渠道' =>  'require',
            'content|消息内容' =>  'require',
            'is_timing|是否定时' =>  'require'
        ];
    }
}